package yf.mall.enums;

import lombok.Getter;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 11:14:14 CST 2020
 */
@Getter
public enum MallActRewardTypeEnum {


    yes(1,"是")
    ,


    no(0,"否")

    ;


        int index;
        String value;

    MallActRewardTypeEnum(int index, String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return MallActRewardTypeEnum.values()[idx].getValue();
    }

}
